import Vue from 'vue'

import 'normalize.css/normalize.css' 

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import '@/styles/index.scss' // global css

import App from './App'
import store from './store'
import router from './router'

Vue.use(ElementUI)

import vuexStore from "@/store/store.mixin.js"
Vue.mixin(vuexStore);

Vue.config.productionTip = false

const app = new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})

//http拦截器
import httpInterceptor from '@/api/http.interceptor.js'
Vue.use(httpInterceptor, app)

// http接口API
import httpApi from '@/api/http.api.js'
Vue.use(httpApi, app)

app.$mount()
